package com.zgjkhis.modules.statistics.service;

import com.zgjkhis.common.service.BaseService;
import com.zgjkhis.modules.statistics.domain.DrugStatistics;
import com.zgjkhis.modules.statistics.req.StoreDrugRequest;
import com.zgjkhis.modules.statistics.resp.StoreDrugResp;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 运营数据：药房药品
 * @Author yxl
 * @Description
 * @Date 2021/12/23 17:47
 **/
public interface StoreDrugService extends BaseService<DrugStatistics> {

    /**
     * 药房药品统计
     * @param request
     * @return
     */
    StoreDrugResp findStatistics(StoreDrugRequest request);

    /**
     * 每日归档
     * @param date
     * @return
     */
    void dayPigeonhole(String date);

    /**
     * 导出查询结果
     * @param request
     * @param response
     * @throws IOException
     */
    void export(StoreDrugRequest request, HttpServletResponse response) throws IOException;

    /**
     * 每日归档
     * @param date
     * @return
     */
    void dayPigeonholeForTask(String date);
}
